<%@page import="yxnote.Category" %>
<%@page import="category.Utils" %>
<%@page import="java.util.List" %>
<%@ include file="/layout/top.jsp" %>
<form action="/post/create" method="post">
<input type="text" name="title" />
<% List<Category> categorys = Utils.find(); %>
<select name="category">
<% for (Category c:categorys) { %>
<option value="<%= c.getKey().getId()%>"><%= c.getName() %></option>
<% } %>
</select>

<textarea rows="10" cols="50" name="content"></textarea>

<input type="submit" value="Create" />
</form>
<%@ include file="/layout/foot.jsp" %>

